package service.category;

import mapper.category.CategoryMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import pojo.Category;

import javax.annotation.Resource;
import java.util.List;

@Transactional
@Service("categoryService")
public class CategoryServiceImpl implements CategoryService{
    @Resource
    private CategoryMapper categoryMapper;

    public List<Category> getCategoryList(int parentId) {
        return categoryMapper.getCategoryList(parentId);
    }
}
